
//
//  LEWebViewController.m
//  CreditAddressBookEE
//
//  Created by LE on 16/2/1.
//  Copyright © 2016年 Lee. All rights reserved.
//

#import "LEWebViewController.h"
#import "UIViewController+LEBackButtonHandler.h"

@interface LEWebViewController ()

@end

@implementation LEWebViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self setupNavigationView];
}

- (void)setupNavigationView {
    UIView *naviView = [[UIView alloc] init];
    naviView.backgroundColor = CYNaviThemeColor;
    naviView.frame = CGRectMake(0, 0, self.view.width, 64);
    [self.view addSubview:naviView];
}

- (BOOL)navigationShouldPopOnBackButton {
    if (self.webView.canGoBack) {
        [self.webView goBack];
        return NO;
    }
    return YES;
}
@end
